import Vue from "vue";
import {TopMessage} from 'framework/util'

Vue.use({
  install: function (Vue, options) {
    Vue.mixin({
      mounted: function () {
        if (TopMessage.has()) {
          const message = TopMessage.get();
          console.log(message);
          this.$message[message.type].call(null, message.message);
        }
      }
    })
  }
});
